import request from '@/utils/request'

// 查询列表
export function listData (query) {
  return request({
    url: '/buildingIndividual/page',
    method: 'get',
    params: query,
  })
}

// 获取数据
export function getDetail (id) {
  return request({
    url: '/buildingIndividual/findById?id=' + id,
    method: 'get'
  })
}
// 获取角色
export function getRole() {
  return request({
    url: '/buildingIndividual/getRole',
    method: 'get'
  })
}
// 编辑
export function updateSingle (data) {
  return request({
    url: '/buildingIndividual/update',
    method: 'post',
    data: data
  })
}

// 删除
export function delSingle (ids) {
  return request({
    url: '/buildingIndividual/delete',
    method: 'get',
    params: {
    	ids:ids
    }
  })
}

//地图查询全部建筑物单体数据列表
export function mapAllListBuilding (query) {
  return request({
    url: '/buildingIndividual/queryBuildingMap',
    method: 'get',
    params: query,
  })
}